package com.app.service;

import java.util.Map;

import org.springframework.security.access.prepost.PreAuthorize;

public interface IMessageService {
	@PreAuthorize("hasRole('ROLE_ADMIN')")
	public void postMessage(String message);
	@PreAuthorize("hasRole('ROLE_ADMIN')")
	public void deleteMessage(Integer key);
	@PreAuthorize("hasRole('ROLE_USER')||hasRole('ROLE_ADMIN')")
	public Map<Integer,String> getMessageList();
}
